#!/usr/bin/env python3

import rospy
from plumbing_pub_sub.msg import Person

if __name__ == '__main__':
    rospy.init_node('AlexPub')
    pub = rospy.Publisher('Alex', Person, queue_size=10)
    p = Person()
    p.location = 'ChangZhou'
    p.number = 66
    p.floor = 1.66
    rate = rospy.Rate(1)
    while not rospy.is_shutdown():
        pub.publish(p)
        rate.sleep()
        rospy.loginfo('House data: %s, %d, %.2f', p.location, p.number, p.floor)
